package com.su27.document;

import com.su27.document.convert.ConverterListener;

public class TestConverterListener implements ConverterListener {

	private String srcPath ;
	private String textWaterMark;
	private String imgWaterMark;
	private String outputPath;
	
	
	public TestConverterListener(String srcPath, String textWaterMark,
			String imgWaterMark, String outputPath) {
		this.srcPath = srcPath;
		this.textWaterMark = textWaterMark;
		this.imgWaterMark = imgWaterMark;
		this.outputPath = outputPath;
	}


	/* 文档转换完成后调用，可以在其中写需要再文档转换完成后做的业务逻辑
	 * @see com.su27.document.convert.ConverterListener#process()
	 */
	public void process() {
		ConverterUtils.textWaterMark(srcPath, textWaterMark);
		ConverterUtils.imgWaterMark(srcPath, imgWaterMark);
		ConverterUtils.encryptDocument(srcPath, outputPath);
		// do other things.
	}




}
